﻿using System.Windows;
using Lotto.Core;

namespace Lotto_WPF
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void calcButton_Click(object sender, RoutedEventArgs e)
        {
            // calculate numbers
            int[] lotteryNumbers = LotteryNumberCalculator.Calculate(6, 49);

            // show numbers
            this.lottoCtrl.SetNumbers(lotteryNumbers);
        }
    }
}
